package com.fqh.mapper;

import com.fqh.entity.Fooddetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodDetailMapper {

    List<Fooddetail> findAllDetail(@Param("page") int page, @Param("limit") int limit, @Param("search") String search);

    Integer findCount(@Param("search") String search);

    Integer addFoodDetail(Fooddetail fooddetail);

    void deleteByFoodClassid(Integer id);

    Fooddetail findFooddetailByFoodId(Integer id);

    void updateFoodDetail(Fooddetail fooddetail) throws Exception;
}
